package com.hotel.services.impl;

import com.hotel.daos.ReserveMapper;
import com.hotel.entitys.Reserve;
import com.hotel.services.ReserveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chend
 * @time 2022/03/02 11:26:09
 */
@Service
@Transactional
public class ReserveServiceImpl implements ReserveService {

    @Autowired
    private ReserveMapper reserveMapper ;
    @Override
    public Integer addRese(Reserve reserve) {
        return reserveMapper.addRese(reserve);
    }

    @Override
    public Integer delById(Integer reserve_id) {
        return reserveMapper.delById(reserve_id);
    }

    @Override
    public Reserve selByCode(Integer room_code) {
        return reserveMapper.selByCode(room_code);
    }

    @Override
    public Integer setReStatus(String room_code) {
        return reserveMapper.setReStatus(room_code);
    }


    @Override
    public Integer setReserve(Reserve reserve) {
        return reserveMapper.setReserve(reserve);
    }
}
